package demo1;

//牛客网:本小猴

import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str = in.nextLine();
        int[] hash = new int[26];
        for(int i = 0; i<str.length(); i++) {
            char ch = str.charAt(i);
            hash[ch-'a']++;
        }
        int maxn = Integer.MIN_VALUE, minn = Integer.MAX_VALUE;
        for(int i = 0; i<26; i++) {
            if(hash[i] != 0) {
                maxn = Math.max(maxn, hash[i]);
                minn = Math.min(minn,hash[i]);
            }
        }
        if(isPrime(maxn-minn)) {
            System.out.println("Lucky Word");
            System.out.println(maxn-minn);
        }else {
            System.out.println("No Answer");
            System.out.println(0);
        }
    }
    public static boolean isPrime(int n) {
        if(n == 0 || n == 1) return false;
        int k = (int)Math.sqrt(n);
        for(int i = 2; i<=k; i++) {
            if(n%i==0) return false;
        }
        return true;
    }
}